def base26to10(data):
    abcstr = "ABCDEFGHIJKLNMOPQRSTUVWXYZ"
    scale=len(abcstr)
    s = ""
    if data == 0:
        return abcstr[0]
    while data >0:
        if data < scale:
            s = abcstr[data]+s
            data = 0
        else:
            r = data % scale
            s = abcstr[r] + s
            data = (data-r) /scale
    return s

if __name__ == "__main__":
    print(base26to10(675))